/**
 * 
 */

package path;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * url: http://127.0.0.1:8080/JSP/path/basePath<br>
 * 當 jsp 有加 <base> 和沒有加 <base> 的 URL 差別<br>
 * 在官方網站, 有建議每個 jsp 應都加 <base>, 使用絕對路徑解決
 * 
 * @author Eric.Kao(gau168.gau@msa.hinet.net)
 * @version 1.0
 * @company E885 Group
 * @copyright Copyright (c) 2001-2008
 */

public class BasePathServlet extends HttpServlet
{
	private static final long serialVersionUID = 7366022118673455705L;

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.servlet.http.HttpServlet#service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	@Override
	protected void service( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException
	{
		request.getRequestDispatcher( "/path/basePath.jsp" ).forward( request, response );
	}

}
